-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: Fix comparison broadcasting over array of Intervals #35938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a test for the array broadcasting issue you noted in #35931 (comment) ?
Looks like |
Nice, I think that's working. So far I only did a minimal copy / paste from another Cython class and stuff is passing, but am I missing some cases you can think of? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. @jbrockmendel if any comments.
|
||
|
||
def test_timdelta_add_timestamp_interval(): | ||
delta = np.timedelta64(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here or follow-up we should get the full complement of add/sub with dt64/td64/pytimedelta/Tick/...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well parametrize over a few timedelta types here
LGTM |
thanks @dsaxton very nice! |
@meeseeksdev backport 1.1.x |
…array of Intervals
…ntervals (#36039) Co-authored-by: Daniel Saxton <[email protected]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff